package file;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class ISRDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("ows.txt");
        InputStreamReader isr = new InputStreamReader(fis, StandardCharsets.UTF_8);
        int i;
        while ((i = isr.read()) != -1) {
            System.out.print((char) i);
        }
        System.out.println("完毕");
        isr.close();
    }
}
